package com.flx.dis.nacos.user;

import com.flx.common.plugins.annotion.enable.EnableDruid;
import com.flx.common.plugins.annotion.enable.EnableSwagger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author Fenglixiong
 * @Create 2022/5/2 19:57
 * @Description
 **/
@Slf4j
@EnableDruid
@EnableSwagger      //加入Swagger文档
@EnableDiscoveryClient //启动服务发现能力
@EnableFeignClients(basePackages = "com.flx.dis.nacos.api") //开启Feign功能
@SpringBootApplication(exclude = {RedisAutoConfiguration.class, FlywayAutoConfiguration.class})
public class NacosUserApplication {

    public static void main(String[] args) {

        SpringApplication.run(NacosUserApplication.class,args);
        log.info("*************************************************");
        log.info("*                                               *");
        log.info("*              NacosUser Success                *");
        log.info("*                                               *");
        log.info("*************************************************");

    }

}
